package reflect;

/**
 * @Author wangzhipeng
 * @Date 2020-08-14 11:32 上午
 * @Description
 */
public class Son extends Father{
    private String sonName = "这是儿子的姓名son";
    public int age = 10;

    public Son() {
    }

    public Son(String sonName, int age) {
        this.sonName = sonName;
        this.age = age;
    }

    private void sayHello(String s1, int i){
        System.out.println(s1+i);
    }

    public String getSonName() {
        return sonName;
    }

    public void setSonName(String sonName) {
        this.sonName = sonName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
